//
//  SDHSportsNewsModal.m
//  SDHSportsNews
//
//  Created by MichaelShan on 2021/3/9.
//

#import "SDHSportsNewsModal.h"
#import "MJExtension.h"

@implementation SDHSportsNewsModal

+ (NSDictionary *)mj_replacedKeyFromPropertyName {
    return @{
             @"newsId" : @"id",
             };
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    if (self = [super init]) {
        self.en_title = [aDecoder decodeObjectForKey:@"en_title"];
        self.img = [aDecoder decodeObjectForKey:@"img"];
        self.time = [aDecoder decodeObjectForKey:@"time"];
        self.en_label = [aDecoder decodeObjectForKey:@"en_label"];
        self.newsId = [aDecoder decodeObjectForKey:@"newsId"];
    }
    
    return self;
}

- (void)encodeWithCoder:(NSCoder *)aCoder {
    [aCoder encodeObject:self.en_title forKey:@"en_title"];
    [aCoder encodeObject:self.img forKey:@"img"];
    [aCoder encodeObject:self.time forKey:@"time"];
    [aCoder encodeObject:self.en_label forKey:@"en_label"];
    [aCoder encodeObject:self.newsId forKey:@"newsId"];
}

@end
